package main.java.design.strategy;

/**
 * <p></p>
 *
 * @author : wangdejian
 * @version 1.0
 * @date : 2020/6/17 21:42
 */
public class CashRebate implements ICashSuper {
    // 活动打折
    private double moneyRebate;

    public  CashRebate(double moneyRebate) {
        this.moneyRebate = moneyRebate;
    }

    @Override
    public double acceptCash(double money) {
        return money * moneyRebate;
    }

}
